
import request from '@/utils/request'
import qs from 'qs'
// 根据骑行吧ID获取每人累计卡路里(最新接口为骑行吧男生榜V2)
export function getCalRankingV2 (id) {
  return request({
    url: '/teach/rideBar/getManRankingV2?rideBarMsgId=' + id,
    method: 'get'
  })
}
// 查询某个骑行吧的骑行天数排行榜
export function rankingRideDays (id) {
  return request({
    url: '/teach/rideBar/rankingRideDays?rideBarMsgId=' + id,
    method: 'get'
  })
}
// 获取滚动消息
export function listScrollMessage (id) {
  return request({
    url: '/teach/rideBar/listScrollMessage?rideBarMsgId=' + id,
    method: 'get'
  })
}
// 根据骑行吧ID获取累计卡路里
export function getTotalCal (id) {
  return request({
    url: '/teach/rideBar/getTotalCal?rideBarMsgId=' + id,
    method: 'get'
  })
}
// 上报达到888kcal通知pad端
export function uploadNotice (data) {
  return request({
    url: '/teach/rideBar/uploadNotice',
    method: 'post',
    data: qs.stringify(data)
  })
}
// 获取盲盒抽奖资格用户
export function getBlindBoxUser (id) {
  return request({
    url: '/teach/rideBar/getBlindBoxUser?rideBarMsgId=' + id,
    method: 'get'
  })
}